package com.crr.mall.ware.dao;

import com.crr.mall.ware.entity.PurchaseDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crr.mall.ware.entity.WareSkuEntity;
import com.crr.mall.ware.vo.Items;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenrenren
 * @email chenrenren@gmail.com
 * @date 2024-11-22 20:37:24
 */
@Mapper
public interface PurchaseDetailDao extends BaseMapper<PurchaseDetailEntity> {
    /**
     * 查询采购详情列表
     * @param map
     * @return
     */
    List<Map> queryByCondition(Map map);

    /**
     * 修改指定详采购情单de 采购单ID为id
     * @param id
     * @param items
     * @return
     */
    int updatePidAndStatus(@Param("id") Long id,@Param("items") List<Long> items);

    /**
     * 修改指定采购单id的采购详情单状态
     * @param ids
     * @return
     */
    int updateStatus(@Param("ids") List<Long> ids);


}
